import { http } from '@/utils/http/axios';

/**
 * @description: 租户列表
 */
export function tenantPage(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysTenant/tenantPage',
    method: 'POST',
    data:params,
  },{
    isTransformResponse: false,
  });
}

/**
 * @description: 删除租户信息
 */
export function removeTenant(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysTenant/removeTenant',
    method: 'POST',
    data:params,
  },{
    isTransformResponse: false,
  });
}

/**
 * @description: 启用，停用租户
 */
export function disabledTenant(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysTenant/disabledTenant',
    method: 'POST',
    data:params,
  },{
    isTransformResponse: false,
  });
}

/**
 * @description: 租户ID查询租户基本信息
 */
export function byTenantId(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysTenant/byTenantId',
    method: 'POST',
    data:params,
  });
}
/**
 * @description: 租户ID查询租户基本信息
 */
export function tenantInfo() {
  return http.request({
    url: '/moss-cloud-base/base/sysTenant/tenantInfo',
    method: 'POST',
  });
}
/**
 * @description: 新增租户
 */
export function saveTenant(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysTenant/saveTenant',
    method: 'POST',
    data:params,
  },{
    isTransformResponse: false,
  });
}
/**
 * @description: 更新租户信息
 */
export function updateTenant(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysTenant/updateTenant',
    method: 'POST',
    data:params,
  },{
    isTransformResponse: false,
  });
}

/**
 * @description: 查询租户配置
 */
export function tenantConfList() {
  return http.request({
    url: '/moss-cloud-base/base/tenantConfig/tenantConfList',
    method: 'POST',
  });
}

/**
 * @description: 更新租户配置
 */
export function updateConfig(params) {
  return http.request({
    url: '/moss-cloud-base/base/tenantConfig/updateConfig',
    method: 'POST',
    data:params,
  },{
    isTransformResponse: false,
  });
}